package com.cnblogs.leizia.crm.workbench.dao;

import com.cnblogs.leizia.crm.workbench.domain.Contacts;
import com.cnblogs.leizia.crm.workbench.domain.ContactsActivityRelation;

import java.util.List;

/**
 * 联系人DAO
 *
 * @author leizi
 * @create 2021-03-30 23:25
 */
public interface ContactsDao {
    /**
     * 保存联系人信息
     *
     * @param contacts
     * @return
     */
    boolean saveContacts(Contacts contacts);

    /**
     * 保存联系人关联的市场活动
     *
     * @param contactsActivityRelation
     */
    void saveActivityContactRelation(ContactsActivityRelation contactsActivityRelation);

    /**
     * 根据名称查询客户
     *
     * @param name
     * @return
     */
    List<Contacts> getContactsList(String name);
}
